package com.fuershiye.woman.monitor.service;

import java.util.List;

import com.fuershiye.woman.monitor.beans.IdNamePid;
import com.fuershiye.woman.monitor.model.DepartmentType;

/**
 * @author yongyongdong
 *
 */
public interface DepartmentTypeService {

    public void save(DepartmentType it);
    public void delete(Long id);
    
    public DepartmentType get(Long id);
    
    /**	取当前表中最大数据
     * @return
     */
    public DepartmentType getTop();
    
    /**
     * @param sort(当前位置)
     * @param aim	方向 (1:比id大的;	2:比id小的)
     * @param count	取几条数据
     * @return
     */
    public DepartmentType findBySort(Long sort, Integer aim, Integer count);

    public DepartmentType findByCode(String code);

    /**
     * name为空查询所有,不为空模糊查询
     * @return
     */
    public List<DepartmentType> list(String name);
    
    /**
     * 获取所有的类型(id和名称)
     * 
     * @return
     */
    public List<IdNamePid> getAllNames();
    
}
